package com.yidu.hbats.service.impl.AtsBase;

import com.yidu.hbats.dao.AtsBaseSportItemMapper;
import com.yidu.hbats.model.AtsBaseSportItem;
import com.yidu.hbats.service.atsBase.AtsBaseSportItemService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @program: t272
 * @description: 体育项目与指标管理接口实现类
 * @author: HJJ
 * @create: 2019-11-18 13:20
 **/
@Service
public class AtsBaseSportItemServiceImp implements AtsBaseSportItemService {
    @Resource
    AtsBaseSportItemMapper atsBaseSportItemMapper;

    @Override
    public int deleteByPrimaryKey(Integer siId) {
        return atsBaseSportItemMapper.deleteByPrimaryKey(siId);
    }

    @Override
    public int insert(AtsBaseSportItem record) {
        return atsBaseSportItemMapper.insert(record);
    }

    @Override
    public int insertSelective(AtsBaseSportItem record) {
        return atsBaseSportItemMapper.insertSelective(record);
    }

    @Override
    public AtsBaseSportItem selectByPrimaryKey(Integer siId) {
        return atsBaseSportItemMapper.selectByPrimaryKey(siId);
    }

    @Override
    public int updateByPrimaryKeySelective(AtsBaseSportItem record) {
        return atsBaseSportItemMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(AtsBaseSportItem record) {
        return atsBaseSportItemMapper.updateByPrimaryKey(record);
    }

    @Override
    public int deleteByPrimaryKey2(Integer sportId) {
        return atsBaseSportItemMapper.deleteByPrimaryKey2(sportId);
    }

    @Override
    public List<AtsBaseSportItem> selectByPrimaryKey2(Integer sportId) {

        return atsBaseSportItemMapper.selectByPrimaryKey2(sportId);
    }

}
